package com.marvels.financial.pay.dao;

import org.apache.ibatis.annotations.Param;

import com.marvels.common.dto.pay.McfeRepaymentTradeDetails;

public interface McfeRepaymentTradeDetailsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(McfeRepaymentTradeDetails record);

    int insertSelective(McfeRepaymentTradeDetails record);

    McfeRepaymentTradeDetails selectByPrimaryKey(Long id);
    
    McfeRepaymentTradeDetails selectByRequestNo(String requestNo);
    
    McfeRepaymentTradeDetails selectByOrderNum(String orderNum);

    int updateByPrimaryKeySelective(McfeRepaymentTradeDetails record);

    int updateByPrimaryKey(McfeRepaymentTradeDetails record);
    
    /**
     * 通过requestNo查询交易信息
     * @param requestNo
     * @return
     */
    public  McfeRepaymentTradeDetails selectByReqNo(@Param("requestNo") String requestNo);
    
    
    /**
     * 查询交易信息
     * @param details
     * @return
     */
    public McfeRepaymentTradeDetails selectTradeInfo(McfeRepaymentTradeDetails details);
    
}